<?php
class Slog_Session
{
	public function init()
	{
		session_start();
	}
	
	public function __get($name)
	{
		return isset($_SESSION[$name]) ? $_SESSION[$name] : null;
	}
	
	public function __set($name, $value)
	{
		$_SESSION[$name] = $value;
	}
	
	public function __unset($name)
	{
		unset($_SESSION[$name]);
	}
}